package com.game;

import android.graphics.Bitmap;
import android.graphics.Canvas;

public class SlideBarDificulty extends SlideBar {

	private Bitmap m_Low, m_Med, m_High;
	
	public SlideBarDificulty(int x, int y, Bitmap bg, Bitmap low, Bitmap med, Bitmap high)
	{
		super(x, y, bg.getWidth(), bg.getHeight(), bg);
		
		m_Low = low;
		m_Med = med;
		m_High = high;
	}
	
	@Override
	public void Draw(Canvas canvas) 
	{
		canvas.drawBitmap(m_Background, m_X, m_Y, null);
		
		int step = m_Low.getWidth();
		
									canvas.drawBitmap(m_Low, m_X, m_Y, null);		
		if( m_CurDis > m_X+step) 	canvas.drawBitmap(m_Med, m_X+step, m_Y, null);
		if( m_CurDis > m_X+2*step) 	canvas.drawBitmap(m_High, m_X+2*step, m_Y, null);	

	}

}
